package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbProductLikeService;
import com.gidgabs.modules.dao.TbProductLikeDao;
import com.gidgabs.modules.entity.TbProductLikeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class TbProductLikeServiceImpl implements TbProductLikeService {
	@Autowired
	private TbProductLikeDao productLikeDao;
	
	@Override
	public TbProductLikeEntity queryObject(Integer id){
		return productLikeDao.queryObject(id);
	}
	
	@Override
	public List<TbProductLikeEntity> queryList(Map<String, Object> map){
		return productLikeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return productLikeDao.queryTotal(map);
	}
	
	@Override
	public void save(TbProductLikeEntity productLike){
		productLikeDao.save(productLike);
	}
	
	@Override
	public void update(TbProductLikeEntity productLike){
		productLikeDao.update(productLike);
	}
	
	@Override
	public void delete(Integer id){
		productLikeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		productLikeDao.deleteBatch(ids);
	}

	@Override
	public int queryCount(TbProductLikeEntity tbProductLikeEntity) {
		return productLikeDao.queryCount(tbProductLikeEntity);
	}

}
